package com.dingreading.cloud.soms.util;

/**
 * 客户来源
 */
public enum EnumCustomSource {
    DT("DT", "地推","地推"),
    XQ("XQ", "小区合作","地推"),
    SC("SC", "商场活动","地推"),
    SQ("SQ", "社区公益","地推"),
    HW("HW", "户外课","地推"),
    ZR("ZR", "自然到访",""),
    ZJ("ZJ", "转介绍",""),
    DY("DY", "抖音","线上"),
    SPH("SPH", "视频号","线上"),
    XHX("XHX", "小红书","线上"),
    DP("DP", "大众点评","线上"),
    MT("MT", "美团","线上"),
    YY("YY", "异业",""),
    QT("QT", "其他",""),
    ;

    private final String uid;
    private final String name;
    private final String type;

    public String getUid() {
        return uid;
    }

    public String getName() {
        return name;
    }

    public String getType() {
        return type;
    }

    //构造方法
    EnumCustomSource(String uid, String name, String type) {
        this.uid = uid;
        this.name = name;
        this.type = type;
    }

    public static String getName(String uid) {
        for (EnumCustomSource data : EnumCustomSource.values()) {
            if (data.getUid().equals(uid)) {
                return data.getName();
            }
        }
        return "";
    }
}
